package com.job.Yangmingyu.Zuoye0714;

/**
 * @author com.job.Yangmingyu
 * @version 1.0
 * @since 2022-07-14 20:15:23
 */
public class Item {
    private  String name;

    public Item(){
    }

    public Item(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void finalize() throws Throwable {
        System.out.println(this.name+"最后的行为，释放一些占用的内存或宝藏在拉夫特尔");
    }
}